const path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  devServer: {
    compress: true,
    port: 608
  },
  publicPath: './',
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src'))
  },
  css: {
    loaderOptions: {
        css: {
            // options here will be passed to css-loader
        },
        postcss: {
            // options here will be passed to postcss-loader
            plugins: [require('postcss-px2rem')({
                remUnit: 75
            })]
        }
    }
}
}